package com.csdj.springboottest.controller;

import com.csdj.springboottest.common.WebResult;
import com.csdj.springboottest.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Locale;

/**
 * author:cloud
 * date:2021/4/22 0022
 **/
@Controller
public class IndexController {

    @Autowired
    private UserService userService;

    @GetMapping("index")
    public String index(ModelMap model){
        model.put("msg","hello world");
        userService.get(1);
        int a= 10;

        return "index";
    }

}
